package com.gjun.struts.resource;

import java.util.Date;
import java.util.List;

import com.gjun.struts.bean.GjunNews;
import com.gjun.struts.bean.GjunNewsJsonBean;

public interface GjunNewsResourceIf {
     public void saveNew(GjunNews news,int maintypeid) throws Exception;
     
     
     public List<GjunNewsJsonBean> loadNewsByConditions(String maintypeid,String state,String systemuser,Date startDate,Date endDate,int start,int max);
     
     public int loadNewsCountByConditions(String maintypeid, String state,
             String systemuser, Date startDate, Date endDate);
     
     
     public GjunNewsJsonBean loadNewsById(int id);
     
     public void updateNewsQueueState(int[] news) throws Exception;
     
     public void updateNewsStateToCancelOrReset(int id,int state) throws Exception;
     
     public void delNewById(int id) throws Exception;
     
     public void delNewsUseBatch(int[] news) throws Exception;
     
     public GjunNewsJsonBean loadNewsEditById(int id);
     
     public void updateNewContentById(int id,String title,String newkey,Date opennews,Date endnews,int maintypeid,String infoContent) throws Exception;
}
